package com.concurrent.chapter1.concurrent07;

public class Main {
	public static void main(String[] args) throws InterruptedException {
		Service service = new Service();
		ThreadP[] threadPs = new ThreadP[60];
		ThreadC[] threadCs = new ThreadC[60];
		for (int i = 0; i < threadCs.length; i++) {
			threadPs[i] = new ThreadP(service);
			threadCs[i] = new ThreadC(service);
		}
		Thread.sleep(2000);
		for (int i = 0; i < threadCs.length; i++) {
			threadPs[i].start();;
			threadCs[i].start();;
		}
	}
}
